<table cellspacing="0" cellpadding="0">
  <thead>
  <tr>
    <th width="14%">Req ID</th>
    <th width="6%">优先级</th>
    <th width="20%">标题</th>
    <th>内容</th>
    <th width="10%">提交时间</th>
    <th width="10%">应完成时间</th>
    <th width="6%">工程师</th>
  </tr>
  </thead>
  <tbody>
<% for req in @requirements %>
  <tr class="<%= cycle("even","odd") %>">
    <td><%= link_to req.project.key + "-Req-" + req.reqid.to_s, requirement_path(req) %></td>
    <% if current_user.has_role?("pdm") %>
    <% @requirement = req %>
    <td><%= in_place_editor_field :requirement, :priority %></td>
    <% else %>
    <td><%= req.priority %></td>
    <% end %>
    <td><%= req.title %></td>
    <td><%= req.description %></td>
    <td><%= req.created_at.to_date %></td>
    <td><%= req.should_be_finish_time.to_date %></td>
    <td><%= req.user.name %></td>
  </tr>
<% end %>
  </tbody>
</table>